package com.marktotop.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.marktotop.entity.business.Health;
import com.marktotop.error.BusinessException;
import com.marktotop.response.ResultBean;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author MarkToTop
 * @since 2021-07-12
 */
public interface IHealthService extends IService<Health> {


    /**
     * 健康上报
     * @param health
     * @return
     * @throws BusinessException
     */
    boolean report(Health health) throws BusinessException;


    /**
     * 今日是否已经报备
     * @param id
     * @return
     */
    Health isReported(Long id);

    /**
     * 分页展示当前登录用户的健康上报记录
     *
     * @param id
     * @param pageNum
     * @param pageSize
     * @return
     */
    ResultBean history(Long id, Integer pageNum, Integer pageSize);
}
